Fetch all requests
URL
https://sdpondemand.manageengine.com/api/json/request
Method
HTTP POST
API description
Allows a technician to get a list of requests matching a certain criteria in the ServiceDesk Plus On-Demand application.
Use the GET_REQUEST_FILTERS api to get the list of all available filters. You can pass the filter id to filter and get the requests. You can get a maximum of 100 requests per api call
Parameters to be passed
authtoken, scope, OPERATION_NAME (value is GET_REQUESTS)
Sample INPUT_DATA:
{
"operation": {
"Details": {
"FILTERBY": "All_Requests",
"FROM": "1",
"LIMIT": "50",
}
}
}
Sample Request:
curl -d
"scope=sdpodapi&authtoken=b3aed9bb15835ea8a7aec7559b565204
&OPERATION_NAME=GET_REQUESTS&INPUT_DATA={operation:{Details:{FILTERBY:All_Requests,FROM:1,LIMIT:50}}}"
https://sdpondemand.manageengine.com/api/json/request
Sample Response:
{
"operation":{
"name":"GET_REQUESTS",
"result":{
"status":"Success",
"message":"Request Details fetched successfully"
},
"totalRows":2,
"Details":[
{
"SUBJECT":"Mail Server is down",
"CREATEDTIME":"15 Nov 2011, 17:27:07",
"CREATEDBY":"Chris Cullen",
"PRIORITY":"High",
"REQUESTER":"Chris Cullen",
"DUEBYTIME":"16 Nov 2011, 09:27:07",
"WORKORDERID":"2",
"STATUS":"Open",
"TECHNICIAN":"",
"NOTIFICATION STATUS":"CONVERSATION",
"ISOVERDUE":"false"
},
{
"SUBJECT":"Unable to browse",
"CREATEDTIME":"15 Nov 2011, 17:26:47",
"CREATEDBY":"Chris Cullen",
"PRIORITY":"High",
"REQUESTER":"Chris Cullen",
"DUEBYTIME":"16 Nov 2011, 09:26:47",
"WORKORDERID":"1",
"STATUS":"Open",
"TECHNICIAN":"",
"NOTIFICATION STATUS":"CONVERSATION",
"ISOVERDUE":"false"
}
]
}
}